/*================================================================*
        Copyright (C) 2021 All rights reserved, www.hsby.link.
      	�ļ����ƣ�test_tcp_server.cc
      	�� �� �ߣ���ɭ����
      	�������ڣ�2021/12/27
 *================================================================*/
#include "tcp_server.h"
#include "iomanager.h"

void test_tcp_server() {
    auto server = hsby::TcpServer::Create();
    if (!server->Init()) {
        //HSBY_LOG_SYSTEM_DEBUG << "server init error";
        return;
    }
    server->Bind(hsby::Ipv4Address::Create("127.0.0.1", 10086));
    server->Start();
}

int main() {
    hsby::IoManager iom(1, "TestIom");
    iom.AddTask(test_tcp_server);
    return 0;
}
